pkgname=stress-ng
pkgver=git
pkgrel=1
pkgdesc="tool to load and stress a computer"
arch=('i386' 'x86_64' 'riscv64' 'aarch64')
url="http://kernel.ubuntu.com/~cking/stress-ng/"
license=('GPL')
source=("https://github.com/ColinIanKing/stress-ng.git")
md5sums=('SKIP')

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" install || return

  mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}"
  # stress-watchdog.c
  ls stress-*.c > "${pkgdir}/lkp/benchmarks/${pkgname}/tests"
}
